package com.dylan.历史;

import com.google.common.base.Splitter;
import com.google.common.collect.Lists;
import org.junit.Test;

import java.util.*;

/**
 * @author : ankang
 * @date : 2019/6/18 11:47
 * @Description :
 */
public class Test66 {

    @Test
    public void test() {
        String s = " ,a b , c ,d, ";
        ArrayList<String> l = Lists.newArrayList(Splitter.on(",").omitEmptyStrings().trimResults().split(s));
        System.out.println(l.size());
        System.out.println(l);
    }


}
